package com.ujn.edu.cn.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sunjx
 * @program selfCode
 * @description User model
 * @date 2020-05-26 19:04
 */
@Data
public class User {
    /**
     * 用户名
     */
    private String name;

    /**
     * 年龄
     */
    private int age;

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
